<ui:composition template="template.xhtml"
                xmlns="http://www.w3.org/1999/xhtml"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:ui="http://java.sun.com/jsf/facelets">


    <ui:define name="content">
        <div id="RepositoryPage" class="container">

            <h2>结果</h2>
            <ul class="repositoryView">
                <ui:repeat var="folder"
                           value="#{tenantContext.resultFolder.folders}">
                    <li class="folder">#{folder.name}</li>
                    <ul>
                        <ui:repeat var="file" value="#{folder.files}">
                            <li class="file #{file.type}">#{file.name}</li>
                        </ui:repeat>
                    </ul>
                </ui:repeat>
                <ui:repeat var="file" value="#{tenantContext.resultFolder.files}">
                    <h:panelGroup rendered="#{file.type eq 'ANALYSIS_RESULT'}">
                        <li class="file #{file.type}"><a
                                href="repository/#{user.tenant}/results/#{file.name}">#{file.name}</a></li>
                    </h:panelGroup>
                    <h:panelGroup rendered="#{file.type ne 'ANALYSIS_RESULT'}">
                        <li class="file #{file.type}">#{file.name}</li>
                    </h:panelGroup>
                </ui:repeat>
            </ul>
        </div>
    </ui:define>

</ui:composition>


